﻿using System;
using System.Collections.Generic;
using System.Text;
using Pixysoft.Framework.Configurations;

namespace Pixysoft.Framework.Logs.testdriven
{
    class tc
    {
        public void test001()
        {
            LogConfiguration config = new LogConfiguration();
            config.Settings.Add(new LoggerSetting());
            Console.WriteLine(Pixysoft.IO.XmlExporter.Instance.XmlSerialize(config));
        }

        public void test002()
        {
            //测试读取配置文件

            LogConfiguration config = Configuration.GetConfiguration<LogConfiguration>();
            Console.WriteLine(config.LogLevel);
            Console.WriteLine(config.Settings[0].Modulename);
        }
    }
}
